<template>
  <div class="loading">
    <img src="../../assets/images/loading.gif" width="28" height="28">
    <p class="desc">{{title}}</p>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '正在加载...'
    }
  }
}
</script>

<style scoped lang="stylus">
@import '../../assets/stylus/variable.styl';

.loading {
  width: 100%;
  text-align: center;

  .desc {
    line-height: 24px;
    font-size: $font-size-small;
    color: $color-text-l;
  }
}
</style>